<extend name="Home@Base/common" />
<block name="body">
    <div class="span9 page_message">
        <section id="contents"> <include file="Home@Addons/_nav" />
            <div class="tab-content">
                <php> $post_url || $post_url = U('add?model='.$model['id'], $get_param);</php>
                <div class="form-horizontal form-center" method="post" action="{$post_url}" id="form">
                    <div class="form-item cf">
                        <label class="item-label"><span class="need_flag">*</span>角色名称<span class="check-tips"></span></label>
                        <div class="controls">
                            <input type="text" class="text input-medium" name="name" value="{$data.name}">
                        </div>
                    </div>
                    <!--<div class="form-item cf">-->
                        <!--<label class="item-label"> <span class="need_flag">*</span>角色等级<span class="check-tips"></span></label>-->
                        <!--<div class="controls">-->
                            <!--<select name="role_level">-->
                                <!--<option value="1">1</option>-->
                                <!--<option value="2">2</option>-->
                                <!--<option value="3">3</option>-->
                                <!--<option value="4">4</option>-->
                                <!--<option value="5">5</option>-->
                            <!--</select>-->
                        <!--</div>-->
                    <!--</div>-->
                    <div class="form-item cf">
                        <label class="item-label"> <span class="need_flag">*</span>职责范围<span class="check-tips"></span></label>
                        <div class="controls">
                            <select name="role_scope">
                                <option value="G">G</option>
                                <option value="S">S</option>
                                <option value="D">D</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">对应部门<span class="check-tips"></span></label>
                        <div class="controls">
                            <select name="dept_id">
                                <volist name="depts" id="vo">
                                    <option value="{$vo.id}">{$vo.name}</option>
                                </volist>
                            </select>
                        </div>
                    </div>

                    <div class="form-item cf">
                        <label class="item-label">角色描述<span class="check-tips"></span></label>
                        <div class="controls">
                            <input type="text" class="text input-large" name="role_description" value="{$data.role_description}">
                        </div>
                    </div>

                    <div class="form-item form_bh">
                        <input type="hidden" name="id" value="{$data.id}">
                        <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
                    </div>
                </form>
            </div>
        </section>
    </div>
</block>
